<!-- Header Area -->
<navbar></navbar>
<div class="row" ng-init="vm.initAllVerify()">
    <div class="col-md-12 col-md-offset-0 main" style="margin-top:5%;">
      <h2 class="sub-header">Verify</h2>
      <div class="table-responsive">
        <table class="table table-striped">
          <thead>
            <tr>
              <th>Seq</th>
              <th>Name</th>
              <th>StoreName</th>
              <th>Idcard</th>
              <th>Img</th>
              <th>Address</th>
              <th>SubmitTime</th>
              <th>Operation</th>
            </tr>
          </thead>
          <tbody ng-controller="amplifierController as avm">
            <tr ng-repeat="verify in vm.verifys track by $index">
              <td class="seq">{{$index+1}}</td>
              <td>{{verify.name}}</td>
              <td>{{verify.storeName}}</td>
              <td ><img ng-click="avm.imgClick($event)" ng-src="{{verify.idcard}}" width="30px"/></td>
              <td ><img ng-click="avm.imgClick($event)" ng-src="{{verify.img}}" width="30px"/></td>
              <td>{{verify.address}}</td>
              <td>{{verify.submitTime | date: 'yyyy-MM-dd HH:mm:ss' }}</td>
              <td>
                <button type='button' class='btn btn-success ' ng-click="vm.passClick($index)">Pass</button>
                <button type='button' class='btn btn-danger ' data-toggle="modal" ng-click="vm.refuseClick($index)">Refuse</button>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
  <div id="modal-refuse" class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
      <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="gridSystemModalLabel">Refuse Reason</h4>
          </div>
          <div class="modal-body">
             <div  style="text-align: center;">
               <input id="id" type="hidden"/>
               <input id="index" type="hidden"/>
               <textarea id="reason" style="margin:0 auto;width:250px; height:100px;" placeholder="Please write down the reasons for the refuse."></textarea>
             </div>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            <button type="button" class="btn btn-primary" ng-click="vm.refuseSubmit()">Submit</button>
          </div>
        </div>
      </div>
    </div>
<amplifier></amplifier>